{if isset($invoiceArray.invoiceNo)}

<table align="center">
<tr>
<th><h2>Invoice No : </h2></th>
<td>
  <label>
  <select id="invoiceNo" onchange="getInvoiceDetailClient(this);">
  	<option value="0">Select</option>
  	  {html_options values=$invoiceArray.invoiceId output=$invoiceArray.invoiceNo}
  </select> </label>
</td>
</tr>
</table>
{/if}
<form class="register1">
<h2>Contract Detail</h2>
<table id="setdata"  align="center">
  <tr>
  	<th class="text-field">Contract Date</th>
  	<th class="text-field">Quntity</th>
  	<th class="text-field">Price</th>
  	<th class="text-field">Value</th>
  	<th class="text-field">Number Of Invoice</th>
  	<th class="text-field">Advace Amount</th>
  	<th class="text-field">Advace Recpit Date</th>
  </tr>
  {section name="sec" loop=$contractArray}
  <tr>
    <td align="left" class="text-field">{$contractArray[sec].contDate}</td>
    <td align="right" class="text-field">{$contractArray[sec].contQty}</td>
    <td align="right" class="text-field">{$contractArray[sec].conPrice}</td>
    <td align="right" class="text-field">{$contractArray[sec].conValue}</td>
    <td align="right" class="text-field">{$contractArray[sec].numOfInvoice}</td>
    <td align="right" class="text-field">{$contractArray[sec].advAmount}</td>
    <td align="left" class="text-field">{$contractArray[sec].advRptDate}</td>
  </tr>
  {/section}
</table>
</form>